// CommentList interface
// JavaScript doesn't support interfaces, so this is pseudocode

interface CommentList {
  CommentList(url); // constructor, makes a new CommentList with comments from the given URL
  get(index); // gets a comment by the index
  add(comment); // adds a comment to the list and auto-saves it, returns the comment's index
  remove(index); // removes a comment from the list and auto-saves it 
}
